/*
    main.cpp

    Created by Miroslav Karpis on 13/11/11.
    Copyright 2011 Miroslav Karpis. All rights reserved.

    This file is part of molecEvol.

    molecEvol is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    Foobar is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Foobar.  If not, see <http://www.gnu.org/licenses/>.
 */

#include <iostream>
#include <GLUT/glut.h>

#include "GLScene.h"
#include "CLMain.h"

//initialize
static GLScene scene;
static CLMain cl;
//void keyboard(unsigned char key, int x, int y);

//--------
int main (int argc, char * const argv[]) {

    //first lets do initialization
    if(!cl.initCL())
        return 1;

    /*
    scene.initGL();
    glutInit(&argc, (char **const)argv);
    glutInitDisplayMode(GLUT_RGB | GLUT_float | GLUT_DEPTH);
    glutInitWindowSize(500, 500);
    glutInitWindowPosition(300, 200);
    glutCreateWindow("1_CA");

    glutDisplayFunc(&GLScene::redraw);
    glutReshapeFunc(&GLScene::reshape);   // set SIZE function
    glutKeyboardFunc(keyboard); // set KEYBOARD function
    glutMainLoop();
    */

    return 0;
}

//--------
/*void keyboard(unsigned char key, int x, int y)
{

    //switch between line/fill (wireframe)
    if(key == 'w'){
        glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
        GLint previous[1];
        glGetIntegerv(GL_POLYGON_MODE, previous);
        //	if(previous[1] == GL_LINE)
   //glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
  //else
   //glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);

    }

    GLScene::redraw();
}
*/
